﻿using Microsoft.EntityFrameworkCore;
using WebApi.model;

namespace WebApi.context
{
    public class ToDoTaskContext : DbContext
    {

        public DbSet<User> Users { get; set; }

        public DbSet<ToDoTask> ToDoTasks { get; set; }

        public DbSet<Memo> Memos { get; set; }

        public ToDoTaskContext(DbContextOptions options) : base(options)
        {

            
        }

        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            base.OnConfiguring(optionsBuilder);
            //Database.EnsureCreated();
        }
    }
}
